﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuXiaChu.OrderDishes.Model;
using BuXiaChu.OrderDishes.DAL;

namespace BuXiaChu.OrderDishes.BLL
{
    public class AreaManager
    {
        /// <summary>
        /// Insert Or Update
        /// </summary>
        public static bool Save(AreaModel obj)
        {
            return AreaDAL.Save(obj);
        }

        public static AreaModel GetByAreaId(int id)
        {
            return AreaDAL.GetByAreaId(id);
        }

        public static List<AreaModel> GetAllList()
        {
            return AreaDAL.GetAllList();
        }

        public static List<AreaModel> GetListByParentId(int parentId)
        {
            return AreaDAL.GetListByParentId(parentId);
        }

        public static bool Delete(int id)
        {
            return AreaDAL.Delete(id);
        }
    }
}
